<%@ page language="java"  pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
   
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<LINK href="resource/css/admin.css" type="text/css" rel="stylesheet">
     <script type="text/javascript" src="<%=basePath%>/scripts/My97DatePicker/WdatePicker.js"></script>
     <script type="text/javascript">
         function  addcheck(){
             String.prototype.trim=function(){
                 return this.replace(/(^\s*)|(\s*$)/g, "");
            }
            var  code=document.getElementById("code").value;
            if(code=="1"){
               alert("请选择添加标题的类别");
               return false;
            }
            var  datetime=document.getElementById("createDate").value;
            if(datetime==""){
               alert('请选择年份');
               return  false;
            }
            var content=document.getElementById("content").value;
            var  contentvalue=content.trim();
            if(contentvalue==""){
               alert("请填写相应事件");
               return false;
            }
            if(contentvalue.length<10){
               alert("所填字数不能小于10");
               return false;
            }
         } 
     </script>
  </head>
  
  <body>
      <div align="center">
      <form onsubmit="return addcheck()" action="<%=basePath%>content/getDev.shtml"  method="post">
      <table>
      <tr>
      <td> 
      <input type="hidden" name="syscontent.id" value="${syscontent.id}"/>
          标题:</td><td> <select name="syscontent.code" id="code">
                 <option value="1" >请选择添加标题的类别</option>
                <option value="3" ${syscontent.code eq 3?'selected' :''}>发展历程</option>
                <option value="4" ${syscontent.code eq 4?'selected' :''}>专业荣誉</option>
            </select>
            </td>
       </tr>
        <tr><td>时间：</td><td><input type="text" name="syscontent.dateString" id="createDate"  readonly="readonly" value="${syscontent.dateString}"  onFocus="WdatePicker({firstDayOfWeek:7,dateFmt:'yyyy年'})" class="Wdate"></td></tr>
        <tr><td> 事件：</td>
        <td><textarea rows="10" cols="20" name="syscontent.content" id="content">${syscontent.content}</textarea></td></tr>
        <tr><td align="center" colspan="2"><input type="submit" value="保存" />&nbsp;&nbsp;<input type="reset" value="重置"></td></tr>
        </table>
        </form>
      </div>
      
  </body>
</html>
